package com.vhall.component.entity.chat.vo;


import com.vhall.component.framework.common.annotation.ParamName;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * @author xianglei
 * @date 2021/5/10 14:04
 */
@Data
public class ChannelSwitchSetReqVo implements Serializable {
    private static final long serialVersionUID = -1086921583822104011L;

    @NotBlank(message = "channel_id参数异常")
    @ParamName("channel_id")
    private String channelId;

    @NotBlank(message = "third_party_user_id参数异常")
    @ParamName("third_party_user_id")
    private String thirdPartyUserId;

    @NotBlank(message = "client参数异常")
    @Pattern(regexp = "(pc_browser)|(h5_browser)|(android)|(ios)|(desktop)|(wechat_browser)|(wechat_applet)", message = "client参数异常")
    private String client;

    @ParamName("vss_token")
    private String vssToken;


    @ParamName("switch")
    @Range(min = 1, max = 2, message = "switch必须在1-2之间")
    @NotNull(message = "switch参数异常")
    private Integer channelSwitch;

    @ParamName("switch_options")
    private Integer switchOptions;
}
